import { onMounted, ref } from "vue";

export function useButton() {
    const buttonLoading = ref(true);
    onMounted(() => {
        setTimeout(() => {
            buttonLoading.value = false
        }, 2000);
    })
    const buttonClick = () => {
        alert('点击按钮')
    }
    return {
        buttonLoading,
        buttonClick
    }
}
